package com.ruoyi.finance.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 应付核销详情对象 pay_reconciliation_detail
 *
 * @author lmj
 * @date 2024-11-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PayReconciliationDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 核销详情id
     */
    private Integer id;

    /**
     * 核销单编号
     */
    @Excel(name = "核销单编号")
    private String reconciliationCode;

    /**
     * 源单号
     */
    @Excel(name = "源单号")
    private String sourceDocumentNo;

    /**
     * 源单类型(1.采购应付 2.采购付款)
     */
    @Excel(name = "源单类型(1.采购应付 2.采购付款)")
    private Integer sourceDocumentType;

    /**
     * 核销金额
     */
    @Excel(name = "核销金额")
    private BigDecimal reconciliationAmount;
    private String typeName;
    private BigDecimal mustPayNoVerAmount;
    private BigDecimal payNoVerAmount;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("reconciliationCode", getReconciliationCode())
                .append("sourceDocumentNo", getSourceDocumentNo())
                .append("sourceDocumentType", getSourceDocumentType())
                .append("reconciliationAmount", getReconciliationAmount())
                .append("remark", getRemark())
                .toString();
    }
}
